<html>
<head><meta charset="utf-8"><title>negate -Z · t-compiler/const-eval · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/index.html">t-compiler/const-eval</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html">negate -Z</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="147747695"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147747695" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147747695">(Nov 15 2018 at 15:04)</a>:</h4>
<p>How do I unset a boolean <code>-Z</code> flag? <code>=0</code> does not work...</p>



<a name="147747738"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147747738" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147747738">(Nov 15 2018 at 15:04)</a>:</h4>
<p>uh, I don't think you can</p>



<a name="147747796"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147747796" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147747796">(Nov 15 2018 at 15:05)</a>:</h4>
<p>wtf</p>



<a name="147747801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147747801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147747801">(Nov 15 2018 at 15:05)</a>:</h4>
<p>that's an odd restriction^^</p>



<a name="147747877"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147747877" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147747877">(Nov 15 2018 at 15:06)</a>:</h4>
<p>well... you can just <em>not</em> specify the flag ;)</p>



<a name="147749115"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147749115" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147749115">(Nov 15 2018 at 15:21)</a>:</h4>
<p>not if other passes already add it earlier in the list of flags</p>



<a name="147749399"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147749399" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147749399">(Nov 15 2018 at 15:24)</a>:</h4>
<p>you can filter out the flag from the <code>Vec</code> of flags</p>



<a name="147749566"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147749566" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147749566">(Nov 15 2018 at 15:27)</a>:</h4>
<p>all I had was <code>// compile-flags:</code> to add more flags</p>



<a name="147749576"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147749576" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147749576">(Nov 15 2018 at 15:27)</a>:</h4>
<p>but actually I found a way to entirely avoid this</p>



<a name="147749590"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147749590" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147749590">(Nov 15 2018 at 15:27)</a>:</h4>
<p>(see the UCG stream for the evil example that lets me avoid multiple compilation units where some dont do retagging.^^)</p>



<a name="147749593"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/negate%20-Z/near/147749593" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/negate.20-Z.html#147749593">(Nov 15 2018 at 15:27)</a>:</h4>
<p>so, never mind.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>